﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace CourseArraging.Frm
{
    /// <summary>
    /// 版权所有
    /// 石世特@温州医学院 sst330381@gmail.com
    /// </summary> 
    public partial class FrmToolbarBase : Form
    {
        #region 字段属性

        #endregion

        #region 构造器
        public FrmToolbarBase()
        {
            InitializeComponent();
        }
        #endregion

        #region 事件

        private void tsb_new_Click(object sender, EventArgs e)
        {
            tsb_new_fun();
        }

        private void tsb_delete_Click(object sender, EventArgs e)
        {
            tsb_del_fun();
        }

        private void tsb_save_Click(object sender, EventArgs e)
        {
            if (be4save())
                tsb_save_fun();
        }

        private void tsb_refresh_Click(object sender, EventArgs e)
        {
            tsb_refresh_fun();
        }

        private void tsb_print_Click(object sender, EventArgs e)
        {
            tsb_print_fun();
        }

        private void tsb_cut_Click(object sender, EventArgs e)
        {
            tsb_cut_func();
        }

        private void tsb_copy_Click(object sender, EventArgs e)
        {
            tsb_copy_func();
        }

        private void tsb_paste_Click(object sender, EventArgs e)
        {
            tsb_paste_func();
        }

        private void tsb_search_Click(object sender, EventArgs e)
        {
            tsb_search_fun();
        }

        private void tsb_help_Click(object sender, EventArgs e)
        {
            tsb_help_func();
        }

        private void tsb_exit_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        #endregion

        #region 方法
        public void tsb_cut_func()
        {

        }
        public void tsb_copy_func()
        {

        }
        public void tsb_paste_func( )
        {

        }
        public void tsb_help_func()
        {

        }
        #endregion

        #region 抽象方法
        public virtual void tsb_new_fun() { }
        public virtual void tsb_del_fun(){ }
        public virtual void tsb_save_fun() { }
        public virtual void tsb_refresh_fun() { }
        public virtual void tsb_print_fun() { }
        public virtual void tsb_search_fun() { }
        public virtual bool be4save() { return false; }
        #endregion

    }
}
